package com.lanou.entity;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

/**
 * @author 姚云鹏
 * Create at: 2018/6/5 14:14
 */

/*
* @Controller  web层
* @Service     service层
* @Repository  dao层
* */

@Component   // 最普通的bean注解
//@Scope("prototype")
public class Car {
    @Autowired
    private Framework framework;

//    public Car(int size) {
//        this.framework = new Framework(size);
//    }

    public Framework getFramework() {
        return framework;
    }

    public void setFramework(Framework framework) {
        this.framework = framework;
    }
}
